import request from '@/utils/request'

export function  referenceDataDict() {
  return request({
    url: '/reference/referenceData/dict',
    method: 'get',
  })
}



// 查询字典数据列表
export function listReferenceData(query) {
  return request({
    url: '/reference/referenceData/list',
    method: 'get',
    params: query
  })
}

// 查询字典数据详细
export function getReferenceData(id) {
  return request({
    url: '/reference/referenceData/' + id,
    method: 'get'
  })
}

// 新增字典数据
export function addReferenceData(data) {
  return request({
    url: '/reference/referenceData',
    method: 'post',
    data: data
  })
}

// 修改字典数据
export function updateReferenceData(data) {
  return request({
    url: '/reference/referenceData',
    method: 'put',
    data: data
  })
}

// 删除字典数据
export function delReferenceData(id) {
  return request({
    url: '/reference/referenceData/' + id,
    method: 'delete'
  })
}

// 导出字典数据
export function exportReferenceData(query) {
  return request({
    url: '/reference/referenceData/export',
    method: 'get',
    params: query
  })
}
